package com.indexingsystem.boss.Vo;

import com.indexingsystem.boss.entity.IdxProducts;
import com.indexingsystem.boss.entity.IdxTaskProduct;

import java.io.Serializable;
import java.util.List;

//查询任务列表集合
public class TaskProductListVo implements Serializable {
    private static final long serialVersionUID = 8121043210393560L;
    private Integer taskId;
    private String siteId;
    private Integer taskType;
    private Integer taskStatus;
    private Integer parentId;
    private String arrParentId;
    private String arrChildId;
    private Integer child;
    private String name;
    private String description;
    private Integer listorder;
    private Integer checkStatus;
    private String taskCheckBy;
    private Integer submitStatus;
    private String assignDate;
    private String planCompleteDate;
    private String createTime;
    private String createBy;
    private String taskProduct;
    private List<IdxProducts> idxProductsList;
    private List<IdxTaskProduct> idxTaskProductList;

    public List<IdxTaskProduct> getIdxTaskProductList() {
        return idxTaskProductList;
    }

    public void setIdxTaskProductList(List<IdxTaskProduct> idxTaskProductList) {
        this.idxTaskProductList = idxTaskProductList;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getArrParentId() {
        return arrParentId;
    }

    public void setArrParentId(String arrParentId) {
        this.arrParentId = arrParentId;
    }

    public String getArrChildId() {
        return arrChildId;
    }

    public void setArrChildId(String arrChildId) {
        this.arrChildId = arrChildId;
    }

    public Integer getChild() {
        return child;
    }

    public void setChild(Integer child) {
        this.child = child;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getListorder() {
        return listorder;
    }

    public void setListorder(Integer listorder) {
        this.listorder = listorder;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getTaskCheckBy() {
        return taskCheckBy;
    }

    public void setTaskCheckBy(String taskCheckBy) {
        this.taskCheckBy = taskCheckBy;
    }

    public Integer getSubmitStatus() {
        return submitStatus;
    }

    public void setSubmitStatus(Integer submitStatus) {
        this.submitStatus = submitStatus;
    }


    public String getPlanCompleteDate() {
        return planCompleteDate;
    }

    public void setPlanCompleteDate(String planCompleteDate) {
        this.planCompleteDate = planCompleteDate;
    }

    public String getAssignDate() {
        return assignDate;
    }

    public void setAssignDate(String assignDate) {
        this.assignDate = assignDate;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getTaskProduct() {
        return taskProduct;
    }

    public void setTaskProduct(String taskProduct) {
        this.taskProduct = taskProduct;
    }

    public List<IdxProducts> getIdxProductsList() {
        return idxProductsList;
    }

    public void setIdxProductsList(List<IdxProducts> idxProductsList) {
        this.idxProductsList = idxProductsList;
    }

    public TaskProductListVo(Integer taskId, String siteId, Integer taskType, Integer taskStatus, Integer parentId,
                             String arrParentId, String arrChildId, Integer child, String name, String description, Integer listorder,
                             Integer checkStatus, String taskCheckBy, Integer submitStatus, String taskAssignBy, String assignDate,
                             String planCompleteDate, String createTime, String createBy, String taskProduct,
                             List<IdxProducts> idxProductsList) {
        super();
        this.taskId = taskId;
        this.siteId = siteId;
        this.taskType = taskType;
        this.taskStatus = taskStatus;
        this.parentId = parentId;
        this.arrParentId = arrParentId;
        this.arrChildId = arrChildId;
        this.child = child;
        this.name = name;
        this.description = description;
        this.listorder = listorder;
        this.checkStatus = checkStatus;
        this.taskCheckBy = taskCheckBy;
        this.submitStatus = submitStatus;
        this.assignDate = assignDate;
        this.planCompleteDate = planCompleteDate;
        this.createTime = createTime;
        this.createBy = createBy;
        this.taskProduct = taskProduct;
        this.idxProductsList = idxProductsList;
    }

    public TaskProductListVo(Integer taskId, String siteId, Integer taskType, Integer taskStatus, Integer parentId,
                             String arrParentId, String arrChildId, Integer child, String name, String description, Integer listorder,
                             Integer checkStatus, String taskCheckBy, Integer submitStatus, String taskAssignBy, String assignDate,
                             String planCompleteDate, String createTime, String createBy, String taskProduct) {
        super();
        this.taskId = taskId;
        this.siteId = siteId;
        this.taskType = taskType;
        this.taskStatus = taskStatus;
        this.parentId = parentId;
        this.arrParentId = arrParentId;
        this.arrChildId = arrChildId;
        this.child = child;
        this.name = name;
        this.description = description;
        this.listorder = listorder;
        this.checkStatus = checkStatus;
        this.taskCheckBy = taskCheckBy;
        this.submitStatus = submitStatus;
        this.assignDate = assignDate;
        this.planCompleteDate = planCompleteDate;
        this.createTime = createTime;
        this.createBy = createBy;
        this.taskProduct = taskProduct;
    }

    public TaskProductListVo() {
        super();
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((arrChildId == null) ? 0 : arrChildId.hashCode());
        result = prime * result + ((arrParentId == null) ? 0 : arrParentId.hashCode());
        result = prime * result + ((assignDate == null) ? 0 : assignDate.hashCode());
        result = prime * result + ((checkStatus == null) ? 0 : checkStatus.hashCode());
        result = prime * result + ((child == null) ? 0 : child.hashCode());
        result = prime * result + ((planCompleteDate == null) ? 0 : planCompleteDate.hashCode());
        result = prime * result + ((createBy == null) ? 0 : createBy.hashCode());
        result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
        result = prime * result + ((description == null) ? 0 : description.hashCode());
        result = prime * result + ((idxProductsList == null) ? 0 : idxProductsList.hashCode());
        result = prime * result + ((listorder == null) ? 0 : listorder.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((parentId == null) ? 0 : parentId.hashCode());
        result = prime * result + ((siteId == null) ? 0 : siteId.hashCode());
        result = prime * result + ((submitStatus == null) ? 0 : submitStatus.hashCode());
        result = prime * result + ((taskCheckBy == null) ? 0 : taskCheckBy.hashCode());
        result = prime * result + ((taskId == null) ? 0 : taskId.hashCode());
        result = prime * result + ((taskProduct == null) ? 0 : taskProduct.hashCode());
        result = prime * result + ((taskStatus == null) ? 0 : taskStatus.hashCode());
        result = prime * result + ((taskType == null) ? 0 : taskType.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        TaskProductListVo other = (TaskProductListVo) obj;
        if (arrChildId == null) {
            if (other.arrChildId != null)
                return false;
        } else if (!arrChildId.equals(other.arrChildId))
            return false;
        if (arrParentId == null) {
            if (other.arrParentId != null)
                return false;
        } else if (!arrParentId.equals(other.arrParentId))
            return false;
        if (assignDate == null) {
            if (other.assignDate != null)
                return false;
        } else if (!assignDate.equals(other.assignDate))
            return false;
        if (checkStatus == null) {
            if (other.checkStatus != null)
                return false;
        } else if (!checkStatus.equals(other.checkStatus))
            return false;
        if (child == null) {
            if (other.child != null)
                return false;
        } else if (!child.equals(other.child))
            return false;
        if (planCompleteDate == null) {
            if (other.planCompleteDate != null)
                return false;
        } else if (!planCompleteDate.equals(other.planCompleteDate))
            return false;
        if (createBy == null) {
            if (other.createBy != null)
                return false;
        } else if (!createBy.equals(other.createBy))
            return false;
        if (createTime == null) {
            if (other.createTime != null)
                return false;
        } else if (!createTime.equals(other.createTime))
            return false;
        if (description == null) {
            if (other.description != null)
                return false;
        } else if (!description.equals(other.description))
            return false;
        if (idxProductsList == null) {
            if (other.idxProductsList != null)
                return false;
        } else if (!idxProductsList.equals(other.idxProductsList))
            return false;
        if (listorder == null) {
            if (other.listorder != null)
                return false;
        } else if (!listorder.equals(other.listorder))
            return false;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        if (parentId == null) {
            if (other.parentId != null)
                return false;
        } else if (!parentId.equals(other.parentId))
            return false;
        if (siteId == null) {
            if (other.siteId != null)
                return false;
        } else if (!siteId.equals(other.siteId))
            return false;
        if (submitStatus == null) {
            if (other.submitStatus != null)
                return false;
        } else if (!submitStatus.equals(other.submitStatus))
            return false;
        if (taskCheckBy == null) {
            if (other.taskCheckBy != null)
                return false;
        } else if (!taskCheckBy.equals(other.taskCheckBy))
            return false;
        if (taskId == null) {
            if (other.taskId != null)
                return false;
        } else if (!taskId.equals(other.taskId))
            return false;
        if (taskProduct == null) {
            if (other.taskProduct != null)
                return false;
        } else if (!taskProduct.equals(other.taskProduct))
            return false;
        if (taskStatus == null) {
            if (other.taskStatus != null)
                return false;
        } else if (!taskStatus.equals(other.taskStatus))
            return false;
        if (taskType == null) {
            if (other.taskType != null)
                return false;
        } else if (!taskType.equals(other.taskType))
            return false;
        return true;
    }

    @Override
    public String toString() {
        return "TaskProductListVo [taskId=" + taskId + ", siteId=" + siteId + ", taskType=" + taskType + ", taskStatus="
                + taskStatus + ", parentId=" + parentId + ", arrParentId=" + arrParentId + ", arrChildId=" + arrChildId
                + ", child=" + child + ", name=" + name + ", description=" + description + ", listorder=" + listorder
                + ", checkStatus=" + checkStatus + ", taskCheckBy=" + taskCheckBy + ", submitStatus=" + submitStatus
                + ", assignDate=" + assignDate + ", planCompleteDate=" + planCompleteDate
                + ", createTime=" + createTime + ", createBy=" + createBy + ", taskProduct=" + taskProduct
                + ", idxProductsList=" + idxProductsList + "]";
    }

}
